package com.work.pta.staic;

public class P25 {
    public static void main(String[] args) {

    }
}

class Node{
    int id;
    int value;
    int next;

    public Node(int id, int value, int next) {
        this.id = id;
        this.value = value;
        this.next = next;
    }

    @Override
    public String toString() {
        return
                id + " " + value + " " + next;

    }
}